package cn.haiway.drools.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author Haiway  on 2019/5/10
 */
@Document(collection = "rule")
@Data
public class Rule {
    @Id
    private String id;

    @Field("description")
    private String description;

    @Field("name")
    private String name;

    @Field("drl")
    private String drl;

    @Field("project_id")
    private String projectId;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

    @Field("create_by")
    private String createBy;
}
